home *** CD-ROM | disk | FTP | other *** search
- Path: news.wichita.com!newsadm
- From: john@mrinc.com (John Matzen)
- Newsgroups: comp.lang.c++
- Subject: exception doesn't work with VC++ 2.2
- Date: Wed, 10 Jan 1996 20:06:47 GMT
- Organization: John's Internet Service
- Message-ID: <30f41b54.349574016@news.dtc.net>
- NNTP-Posting-Host: fourier.dtc.net
- X-Newsreader: Forte Agent .99c/16.141
-
- I'm trying to update a record with the CRecordset::Update() function.
- When I do, the function returns FALSE and the record is not updated.
- I also can't seem to catch any exceptions from the function:
-
- In the following code block:
-
- try {
- pDoc->setCustomer.Update();
- }
- catch (...) {
- AfxMessageBox("An exception occured updating record.");
- }
-
- the exception is not caught. Also, I've tried numerous variations of
- this with try, and TRY, and catching specific exceptions and nothing
- works. I have no idea why my record is not getting updated.
-
- Any ideas?
-
- setCustomer is a CCustomerset which is derived from CRecordset. set
- Customer is in my document (pDoc) and is being called from a
- CFormView.
-
- Thanks,
-
- John Matzen
-
-